export function loginApi(account: string, password: string) {
    return got<Stick.ILoginUserModel>({
        url: "/open-api/login",
        method: "post",
        data: {
            account,
            password
        }
    });
}

export function logoutApi() {
    return got<string>({
        url: "/auth-api/logout",
        method: "post"
    });
}

export function currentApi() {
    return got<Stick.ILoginUserModel>({
        url: "/auth-api/current",
        method: "get"
    });
}
